import { createRouter, createWebHashHistory } from 'vue-router'
import Home from '../views/home.vue'
import Player from '../components/player.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/Player',
    name: 'Player',
    component: Player
  }
  // {
  //   path: '/about',
  //   name: 'About',
  //   // 懒加载 About 组件
  //   component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  // }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
